package com.atguigu.msmservice.service.impl;

import com.atguigu.commonutils.msm.MsmUtils;
import com.atguigu.commonutils.msm.ValidateCodeUtils;
import com.atguigu.msmservice.service.MsmApiService;
import org.springframework.stereotype.Service;

/**
 * @author fxy
 * @date 2022/5/11 11:40
 */
@Service
public class MsmApiServiceImpl implements MsmApiService {
    @Override
    public String send(String phone) {
        String[] random = {ValidateCodeUtils.getRandom()};
        String send = MsmUtils.send(phone, random);
        return send;
    }
}
